package com.daka.service.impl;

import com.daka.dao.UserOpenDao;
import com.daka.entity.UserOpen;
import com.daka.service.UserOpenService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by yangx
 * CreateTime: 2016/12/28 18:39
 */
@Service("userOpenService")
@SuppressWarnings("unused")
public class UserOpenServiceImpl implements UserOpenService {
    @Resource
    private UserOpenDao userOpenDao;

    @Override
    public int insert(UserOpen record) {
        return userOpenDao.insert(record);
    }

    @Override
    public UserOpen selectByPrimaryKey(Integer id) {
        return userOpenDao.selectByPrimaryKey(id);
    }

    @Override
    public UserOpen selectByUserId(Long userId) {
        return userOpenDao.selectByUserId(userId);
    }

    @Override
    public UserOpen selectByOpenId(String openId) {
        return userOpenDao.selectByOpenId(openId);
    }

    @Override
    public List<UserOpen> selectByStatement(UserOpen record) {
        return userOpenDao.selectByStatement(record);
    }

    @Override
    public int selectByStatementCount(UserOpen record) {
        return userOpenDao.selectByStatementCount(record);
    }

    @Override
    public int updateByPrimaryKeySelective(UserOpen record) {
        return userOpenDao.updateByPrimaryKeySelective(record);
    }
}
